InstructionsSolution 🔒Push a string II Complete the function toPushString so that the str variable is added to the arr array.Solution will unlock after 4:49 minHintSave1234567891011//Write a function named toPushString//should take in arr and str as parameters//return an arrayfunction toPushString(arr, str) { // edit code here}// Do not modifyconsole.log(toPushString(["Clock", "Twitter"], "Processor")); // ["Clock", "Twitter", "Processor"]console.log(toPushString(["Weather"], "Calculator")); // ["Weather", Enter to Rename, Shift+Enter to PreviewclearResetTest